package group.hhsw.atomic.controller;


import group.hhsw.atomic.service.AtomicService;
import group.hhsw.common.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author hmj
 * @since 2022-02-20
 */
@RestController
@RequestMapping("/atomic")
public class AtomicController {

    @Autowired
    private AtomicService atomicService;

    @GetMapping("/getAll")
    public Result getAll() {
        return Result.success(atomicService.list());
    }

}
